<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/16
 * Time: 16:01
 */
//减少令牌服务
require_once './TokenRedis.php';
$addObg = new TokenRedis();
swoole_timer_tick(600, function () use ($addObg) {
    echo $addObg->reduceToken() ? 'true' : 'false'.PHP_EOL;
});